package com.cn.longdistancebusstation.util;

/**
 * Created by mucheng on 2018/2/4.
 */

public class RegularCheckUtil {
    public static boolean checkCardNo(String str) {
        //正则表达式判断身份证号码
        String regex = "(^[0-9]{15}$)|([0-9]{17}([0-9]|X)$)";
        boolean isMatch = str.matches(regex);
        return isMatch;

    }
}
